
function ellipsePen(resolve){
    this.move = function(b,e){
        return {b,e}
    }
    this.end = function(b,e){
        if(b)resolve({b,e})
    }
}
ellipsePen.moveBegin = true
ellipsePen.render = function(ctx,data){
    if(data&&data.b&&data.e){
        var x = data.b.x;
        var y = data.b.y;
        var a = data.e.x;
        var b = data.e.y;
        ctx.fillStyle="#FF0000";
        ctx.strokeStyle="red";
        ctx.fillRect(x,y,a,b);
    }
}

export default ellipsePen
